﻿using SD.Infrastructure.EntityBase;

namespace SlamDunk.MES.Domain.Entities.StockContext
{
    /// <summary>
    /// 库存单据条码
    /// </summary>
    public class StockOrderBarcode : PlainEntity
    {
        #region # 构造器

        #region 00.无参构造器
        /// <summary>
        /// 无参构造器
        /// </summary>
        protected StockOrderBarcode() { }
        #endregion

        #region 01.创建库存单据条码构造器
        /// <summary>
        /// 创建库存单据条码构造器
        /// </summary>
        /// <param name="materialBarcodeNo">物料条码编号</param>
        public StockOrderBarcode(string materialBarcodeNo)
            : this()
        {
            this.MaterialBarcodeNo = materialBarcodeNo;
        }
        #endregion

        #endregion

        #region # 属性

        #region 物料条码编号 —— string MaterialBarcodeNo
        /// <summary>
        /// 物料条码编号
        /// </summary>
        public string MaterialBarcodeNo { get; private set; }
        #endregion

        #region 导航属性 - 库存单据明细 —— StockOrderDetail StockOrderDetail
        /// <summary>
        /// 导航属性 - 库存单据明细
        /// </summary>
        public virtual StockOrderDetail StockOrderDetail { get; internal set; }
        #endregion

        #endregion
    }
}
